package cn.hxsteel.purview.model.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import cn.hxsteel.purview.core.base.BaseDAO;
import cn.hxsteel.purview.model.po.RolePO;

/**
 * 角色的数据访问对象
 */
@Repository
public class RoleDAO extends BaseDAO< RolePO, Short >
{
    /**
     * 查询指定用户标识创建的角色持久对象的列表
     * 
     * @param uid 用户标识
     * @return
     */
    public List< RolePO > selCreateList( int uid )
    {
	return find( "from RolePO as a where a.uid = ?", uid );
    }
}